// 共享的Token类型定义

export interface TradingStrategy {
  id: string;
  isEnabled: boolean;
  rsiBuyThreshold: number;
  rsiSellThreshold: number;
  buyAmountSol: number;
  buyAmountBnb: number;
  buyAmountEth: number;
  firstDipPercent: number;
  secondDipPercent: number;
  maxPositions: number;
}

export interface Token {
  id: string;
  symbol: string;
  name: string;
  contractAddress: string;
  chain: string;
  price: number | null;
  marketCap: number | null;
  volume24h?: number | null;
  priceChange24h?: number | null;
  rsi: number | null;
  lastUpdated: string;
  error?: string;
  strategy?: TradingStrategy;
}

export interface TokenData extends Token {
  // TokenData 是 Token 的别名，保持向后兼容
}
